<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>CMS</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.min.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
    <link href="css/messenger.css" rel="stylesheet">
    <link href="css/messenger-theme-flat.css" rel="stylesheet">
    <style type="text/css">body{padding: 0;background-color: grey;}</style>
</head>
<body>
<iframe id="main" width="100%" height="100%" frameborder="0"></iframe>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/messenger.min.js"></script>
<script language="JavaScript">
    $(function(){
        var Authorization = localStorage.getItem("Authorization");
        var rnd = parseInt(Math.random() * 10);
        if(Authorization == undefined || Authorization == ""){
            $("#main").attr("src","login.html?"+rnd);
        }else{
            $("#main").attr("src","portal.html?"+rnd);
        }
        $("#main").height($(document).height());
    });
    $(document.body).css({"overflow-x":"hidden", "overflow-y":"hidden"});
    $._messengerDefaults = {extraClasses: 'messenger-fixed messenger-theme-flat messenger-on-bottom messenger-on-right'};
    function msg(info)
    {
        $.globalMessenger().post({message:info, type:"info", hideAfter:4, hideOnNavigate:true});
    }
    function msgErr(info)
    {
        $.globalMessenger().post({message:info, type:"error", hideAfter:4, hideOnNavigate:true});
    }
</script>
</body>
</html>